# Qua lab. - Russia
# Vladimir Kerimov
# 2011 Aug 12

CC = g++ -g
INC = -I include
CFLAGS = -c $(INC)

all:
	$(CC) $(CFLAGS) src/ustring.cpp -o obj/ustring.obj
	$(CC) $(CFLAGS) src/encode.cpp -o obj/encode.obj
	$(CC) $(CFLAGS) src/encode/decoder.cpp -o obj/decoder.obj
	$(CC) $(CFLAGS) src/encode/cp866.cpp -o obj/cp866.obj
	$(CC) $(CFLAGS) src/encode/cp1250.cpp -o obj/cp1250.obj
	$(CC) $(CFLAGS) src/encode/cp1251.cpp -o obj/cp1251.obj
	$(CC) $(CFLAGS) src/encode/cp1252.cpp -o obj/cp1252.obj
	$(CC) $(CFLAGS) -I . utest.cpp -o obj/utest.obj
	$(CC) obj/ustring.obj obj/encode.obj obj/decoder.obj \
	obj/cp866.obj obj/cp1250.obj obj/cp1251.obj obj/cp1252.obj \
	obj/utest.obj -o bin/ustring.exe

clean:
	-rm obj/*.obj
